<%@page import="cn.jhc.bean.ShopBean"%>
<%@page import="java.util.List"%>
<%@page import="cn.jhc.dao.ShopDAO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改吉他数据</title>
</head>
<script type="text/javascript">
	function MM_popupMsg(msg) {
		alert(msg);
	}
</script>
<body>
	<%
		ShopDAO dao = new ShopDAO();
		List<ShopBean> list = null;
		list = dao.getAllTitles();
		request.setAttribute("titles", list);
	%>
	<div id="wrapper">
		<jsp:include page="./houtai_header.jsp"></jsp:include>
		<div id="left">
			<div class="button"><a href="adminchecklist.jsp?judgment=T&judgment2=T">订单信息</a></div>
			<div class="button"><a href="houtai_addjita.jsp">增加吉他</a></div>
			<div class="button"><a href="deletejita.do?bl=all">删除吉他</a></div>
			<div class="button2"><a href="alterjita.jsp">吉他信息</a></div>
		</div>
		<div id="right">
			<div id="right_top">
				<a>所在位置： 订单信息&gt;所有吉他</a>
			</div>
			<table width="100%">
				<tr>
					<th height="25">编号</th>
					<th>名称</th>
					<th>地址</th>
					<th>厂商</th>
					<th>件数</th>
					<th>价格</th>
					<th>日期</th>
					<th>简介</th>
					<th>操作</th>
				</tr>
				<c:forEach items="${requestScope.titles}" var="shop">
					<tr>
						<td height="25"><div align="center">${shop.isbn}</div></td>
						<td><div align="center">${shop.title}</div></td>
						<td><div align="center">${shop.address}</div></td>
						<td><div align="center">${shop.manufacturers}</div></td>
						<td><div align="center">${shop.amount}</div></td>
						<td><div align="center">${shop.price}</div></td>
						<td><div align="center">${shop.publish_date}</div></td>
						<td><div align="center">${shop.remark}</div></td>
						<td><div align="center"><a href="alterjitadata.jsp?isbn=${shop.isbn}">修改</a></div></td>
					</tr>
				</c:forEach>
			</table>
		</div>
	</div>
</body>
</html>